package com.jarchie.androiddev.model

sealed class HomeItem{
    data class BannerItem(val bannerList: List<BannerData>): HomeItem()
    data class ImageItem(val images: List<Image>): HomeItem()
    data class VideoItem(val videos: List<Video>): HomeItem()
}

data class HomeData(
    val bannerList: List<BannerData>,
    val images: List<Image>,
    val videos: List<Video>
)

data class BannerData(
    val icon: String,
    val url: String
)

data class Image(
    val create_time: String,
    val desc: String,
    val image: String,
    val itemType: Int,
    val nickname: String,
    val size: String,
    val type: String
)

data class Video(
    val create_time: String,
    val desc: String,
    val itemType: Int,
    val nickname: String,
    val size: String,
    val type: String,
    val video: String
)
